package day08;

import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;

public class Demo01 {

	public static void main(String[] args) throws Exception {
		

		FileOutputStream output= new FileOutputStream("abc/abc1.txt");
		BufferedOutputStream out = new BufferedOutputStream(output);
		
		out.write(65);
		out.write(66);
		out.write(67);
		
		out.flush();
		
		out.write(69);
		
		out.close();
		
		out.write(80);//close后不能再写入文件！不会抛出异常。
					//如果不用BufferedOutptStream，会抛出异常
		
		
		
		
		
	}

}
